package com.ss.android.newmedia.feedback;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.style.ClickableSpan;
import android.view.View;
import com.bytedance.frameworks.b.a.ComponentsManifest;
import com.ss.android.cc;

public final class l extends ClickableSpan {
    private String a;

    public l(String arg1) {

        this.a = arg1;
    }

    public final void onClick(View arg5) {
        if(!android.support.design.a.isTextEmpty(this.a)) {
            Uri v0 = Uri.parse(this.a);
            Context v1 = arg5.getContext();
            if(v1 == null) {
                return;
            }

            if(v0 == null) {
                return;
            }

            if("sslocal".equals(v0.getScheme())) {
                Object v0_1 = ComponentsManifest.findComponent(cc.class);
                if(v0_1 != null) {
                    this.a = this.a.replaceFirst("sslocal", "snssdk" + ((cc)v0_1).e());
                }

                v0 = Uri.parse(this.a);
            }

            try {
                Intent v2 = new Intent("android.intent.action.VIEW", v0);
                v2.putExtra("com.android.browser.application_id", v1.getPackageName());
                v1.startActivity(v2);
            }
            catch(Exception v0_2) {
            }
        }
    }
}

